package org.texteasy.helpers;

public enum TextEasyMessageServiceStates {
	
	INITIAL_STATE("InitialState"),
	WAITING_FOR_MESSAGES("WaitingForMessages"),
	SENDING_MESSAGE("SendingMessage");
	
	private String name;
	
	TextEasyMessageServiceStates(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
	
	public static TextEasyMessageServiceStates getMessageEditorStateFromName(String name){
		
		if(INITIAL_STATE.getName().equalsIgnoreCase(name)){
			return INITIAL_STATE;
		}else{
			return null;
		}
		
	}
}
